﻿using System;

namespace MvePublicService.RelationsOperations
{
	/*
	 * 日本SGI株式会社
	 * ヨハンソン・ヘンリク
	 * johansson@sgi.co.jp
	 * Project: MVEPublicService
	 * 
	 * Comments:
	 *      No Comments.
	 * 
	 * Change Log:
	 * ---------------------------------------------------------------------------
	 * 1/8/2009 11:14:56 AM		Johansson Henrik		Class Created.
	 * 
	 */

	/// <summary>
	/// Object view of a Segment Relation entry in the Database.
	/// Use this class to represent a single Segment Relation from the Databse.
	/// </summary>
	/// <seealso cref="RelationLoader"/>
	/// <remarks>INSERT:Creds</remarks>
	internal class Relation : IComparable<Relation>
	{
		public int segment1Id { get; set; }
		public int segment2Id { get; set; }
		public byte relation { get; set; }
		public int Id { get; set; }

		#region IComparable<Relation> Members

		public int CompareTo(Relation other)
		{
			return this.Id.CompareTo(other.Id);
		}

		#endregion
	}
}
